package cn.bandeqing.finance.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class FinanceCostSaveOrUpdateReq implements Serializable {

    private Long ocId;

    /**
     * 订单ID
     */
    @NotNull
    private Long orderId;

    /**
     * 小哥ID
     */
    private Long workerId;
    private String workerNickName;

    /**
     * 用户ID
     */
    private Long usId;
    private String usNickName;

    /**
     * 成本金额
     */
    @NotNull
    private Double ocMoney;

    /**
     * 成本类型 0=工时费 1=分成
     */
    @NotNull
    private Integer ocType;

    /**
     * 成本描述
     */
    @NotBlank
    private String ocDesc;

    private Integer usSplitType;

    /**
     * 用户分成比例
     */
    private Double usSplitProportion;

}
